import { RouteItem as UgeezRouteItem, BaseNavItem, NavItem as UgeezNavItem } from "@ugeez/frontend-commons/lib/types";
import { UserRole } from '@shared/types';

export * from './biz';

//////////////////////////////////
//  UI
//////////////////////////////////

export type RouteItem = {
    isHome?: boolean;
    roles?: UserRole[];
} & UgeezRouteItem;

export type Breadcrumb = {
    path?: string,
    breadcrumbName: string,
};

export type AdminNavItem = {
    breadcrumb?: boolean;
    parents?: AdminNavItem[];
    hiddens?: AdminNavItem[];
    hidden?: boolean;
} & UgeezNavItem<BaseNavItem>;

export type NavItem = {
} & AdminNavItem & UgeezNavItem<AdminNavItem>;